ARG J_V=jdk8:471-d131slim
FROM registry.cn-hangzhou.aliyuncs.com/xiaoyilin/${J_V}
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
COPY kotlinc /usr/local/kotlin2.2.21
ENV  PATH=$PATH:/usr/local/kotlin2.2.21/bin
CMD ["kotlin","-version"]

# https://github.com/JetBrains/kotlin/releases
# docker system prune
# JAVA8
# docker build --build-arg J_V=jdk8:471-d131slim -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java8 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java8
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java8

# JAVA11
# docker build --build-arg J_V=java11:0.29-d131slim -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java11 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java11
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java11

# JAVA17
# docker build --build-arg J_V=java17:0.17-d131slim -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java17 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java17
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java17

# JAVA21
# docker build --build-arg J_V=java21:0.9-d131slim -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java21 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java21
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java21

# JAVA25
# docker build --build-arg J_V=java25:0.1-d131slim -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java25 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java25
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/kotlin:v2.2.21-java25